<template>
  <view>
    <van-swipe :autoplay="3000" indicator-color="white">
      <van-swipe-item
        class="swipe-image"
        v-for="(image, index) in images"
        :key="index"
      >
        <img :src="image" />
      </van-swipe-item>
    </van-swipe>
  </view>
</template>
<script>
export default {
  data() {
    return {
      images: [
        "https://gtms04.alicdn.com/tps/i4/TB1pgxYJXXXXXcAXpXXrVZt0FXX-640-200.jpg",
        "https://gtms04.alicdn.com/img.alicdn.com/imgextra/i3/6000000000659/O1CN01VH0zSs1Gjrhx72vTP_!!6000000000659-0-lubanimage.jpg",
      ],
    };
  },
};
</script>
<style>
.swipe-image {
  width: 100%;
  height: 150px;
}
.swipe-image > img {
  width: 100%;
  height: 100%;
}
</style>